package cn.kgc.service.administrative;

import cn.kgc.controller.logic.administrative.yongcarxq;
import cn.kgc.dao.administrative.wxw_carDao;
import cn.kgc.pojo.Carsapplication;
import cn.kgc.pojo.Carsinfo;
import cn.kgc.pojo.Department;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: wang
 * @date: 2022/2/17
 * @description:
 */
@Service
public class wxw_carServiceImpl implements wxw_carService{
    @Resource
    private wxw_carDao wxw_carDao;
    @Override
    public List<Carsinfo> selCar() {
        return wxw_carDao.selCar();
    }



    @Override
    public boolean addYongche(Carsapplication carsapplication) {
        if (wxw_carDao.addYongche(carsapplication)>-1){
            return true;
        }
        return false;
    }

    @Override
    public boolean deteCar(Integer id) {
        if (wxw_carDao.deteCar(id)>-1){
            return true;
        }
        return false;
    }

    @Override
    public boolean updaCar(Carsinfo carsinfo) {
        if (wxw_carDao.updaCar(carsinfo)>-1){
            return true;
        }
        return false;
    }

    @Override
    public boolean addCar(Carsinfo carsinfo) {
        if (wxw_carDao.addCar(carsinfo)>-1){
            return true;
        }
        return false;
    }

    @Override
    public Carsinfo selbyId(Integer id) {
        return wxw_carDao.selbyId(id);
    }

    @Override
    public boolean panduan(String number) {
        if (wxw_carDao.panduan(number)>0){
            return true;
        }
        return false;
    }

    @Override
    public List<Carsapplication> selCha(Integer id) {
        return wxw_carDao.selCha(id);
    }

    @Override
    public boolean updCa(Integer id) {
        if (wxw_carDao.updCa(id)>0){
            return true;
        }
        return false;
    }

    @Override
    public List<yongcarxq> selCarsa(Integer id) {
        return wxw_carDao.selCarsa(id);
    }
}
